<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="root">
    <hello></hello>
    {{message}}
  </div>

  <script src="./libs/vue.js"></script>
  <script>
    Vue.component('hello', {
      template: `<h1>{{title}}</h1>`,
      data: () => {
        return {
          title: '标题'
        }
      }
    })

    new Vue({
      el: '#root',
      data() {
        return {
          message: '你好'
        }
      }
    })
  </script>
</body>
</html>